home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12513 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Is this a C BUG??? (A string issue)
  5. Date: Mon, 01 Apr 96 11:30:43 GMT
  6. Organization: none
  7. Message-ID: <828358243snz@genesis.demon.co.uk>
  8. References: <4jknpf$9k3@abel.cc.sunysb.edu> <4jmjgfINN8pr@keats.ugrad.cs.ubc.ca> <AD84A72A96681716E4@mcdiala03.it.luc.edu>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <AD84A72A96681716E4@mcdiala03.it.luc.edu>
  15.            VArase@varase.it.luc.edu "Verne Arase" writes:
  16.  
  17. >In article <4jmjgfINN8pr@keats.ugrad.cs.ubc.ca>,
  18. >c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) wrote:
  19. >
  20. > >When in doubt, process individual characters rather than being clever
  21. >with
  22. > >buffers and string manipulation. It can be more efficient and cleaner.
  23. >
  24. >Even better for fixed length records is open/read/write/close. You can even
  25. >use non-delimited records. (Why waste the space of a line delimiter, if
  26. >you're not going to use character formatted data?)
  27.  
  28. open/read/write/close are not standard C. The correct standard approach to
  29. do this is fopen/fread/fwrite/fclose.
  30.  
  31. -- 
  32. -----------------------------------------
  33. Lawrence Kirby | fred@genesis.demon.co.uk
  34. Wilts, England | 70734.126@compuserve.com
  35. -----------------------------------------
  36.